import wepy from 'wepy';
const baseURL = 'https://www.zhengzhicheng.cn/api/public/v1'


/**
 * 发起GET请求 
 * @url 
 * @data 默认为空
 */
wepy.get = function(url, data = {}) {
    return wepy.request({
        url: baseURL + url,
        method: "GET",
        data: data
    });
};

/**
 * 发起POST请求 
 * @url 
 * @data 默认为空
 */
wepy.post = function(url, data = {}) {
    return wepy.request({
        url: baseURL + url,
        method: "POST",
        data: data
    });
};